package com.baichuan.zntx.domain.bo;

import com.baichuan.common.core.validate.AddGroup;
import com.baichuan.common.core.validate.EditGroup;
import com.baichuan.zntx.domain.Region;
import com.baichuan.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 工位管理业务对象 t_region
 *
 * @author MaZhanliang
 * @date 2024-05-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Region.class, reverseConvertGenerate = false)
public class RegionBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 工位名称
     */
    @NotBlank(message = "工位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 工位-经度
     */
    @NotNull(message = "工位-经度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double longtitude;

    /**
     * 工位-纬度
     */
    @NotNull(message = "工位-纬度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double latitude;

    /**
     * 工作范围
     */
    private Long radius;

    /**
     * 是否启用
     */
    @NotNull(message = "是否启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isAvailable;

    private String rfid;
}
